﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace EmprestaAE.MVVM.Model
{
    [KnownType(typeof(EmprestaAE.MVVM.Model.Borrowing))]
    [DataContractAttribute]
    public class ModelBase : INotifyPropertyChanged
    {        
        public event PropertyChangedEventHandler PropertyChanged;

        public void RaisePropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            { 
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
